<%@ page contentType="text/html; charset=gb2312" language="java"%>
<%@ page language="java" import="java.util.*,control.database.*,java.sql.*"%>
<%
String BranchName=(String)session.getAttribute("BranchName");
String BranchNo=(String)session.getAttribute("BranchNo");
String SubCenterNo=(String)session.getAttribute("SubCenterNo");
String KeyID="";
String OperatorNo="";
String OperatorName="";


if(request.getParameter("KeyID")!=null){
	KeyID=request.getParameter("KeyID");
}
if(request.getParameter("OperatorNo")!=null){
	OperatorNo=request.getParameter("OperatorNo");
}
if(request.getParameter("OperatorName")!=null){
	OperatorName=new String(request.getParameter("OperatorName").toString().getBytes("ISO8859_1"));
}

String sql="update dbo.CQ_Cmn_Operators set OperatorNo="+OperatorNo+",OperatorName='"+OperatorName+"'  where KeyID="+KeyID;
	System.out.println("UPDATE: "+OperatorNo+"  "+sql);
	DataBase db2 = new DataBase();
	db2.executeUpdate(sql);
	db2.closeStmt();
	db2.closeConn();
response.sendRedirect("Operator_add_success.jsp?KeyID="+KeyID+"&flag=rest");
%>